package com.itserver.utils;

public class CurrentHolder {
    private static final ThreadLocal<Object> threadLocal = new ThreadLocal<>();

    public static void setCurrent(Object id) {
        threadLocal.set(id);
    }

    public static Object getCurrent() {
        return threadLocal.get();
    }
    public static void remove() {
        threadLocal.remove();
    }
}
